package com.newgrand.controller;/*
 *@authot liugz
 *  @date 2023/9/19 11:50
 */

import com.newgrand.domain.model.I8ReturnModel;
import com.newgrand.service.CntMSRServer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "收入合同接口")
@RequestMapping("/CntMSR")
@RestController
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class CntMSRController {

    private final CntMSRServer contServer;

    @ApiOperation(value = "收入合同接口", notes = "收入合同接口")
    @RequestMapping(value = "/Send/sendCntM1", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1(String phId) {
        return contServer.sendCntM1(phId);
    }

    @ApiOperation(value = "收入合同接口批量推送", notes = "收入合同接口批量推送")
    @RequestMapping(value = "/Send/CntM1/Batch", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1Batch() {
        return contServer.sendCntM1Batch();
    }

    @ApiOperation(value = "合同汇总清单", notes = "合同汇总清单")
    @RequestMapping(value = "/Send/sendCntM1D", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1D(String phId) {
        return contServer.sendCntM1D(phId);
    }

    @ApiOperation(value = "计量与收款节点信息新增、修改", notes = "计量与收款节点信息新增、修改")
    @RequestMapping(value = "/Send/sendCntM1SKJD", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1SKJD(String phId) {
        return contServer.sendCntM1SKJD(phId);
    }

    @ApiOperation(value = "合同签约方信息 收入合同甲乙丙方信息新增、修改", notes = "合同签约方信息 收入合同甲乙丙方信息新增、修改")
    @RequestMapping(value = "/Send/sendCntM1JYBBatch", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1JYBBatch(String phId) {
        return contServer.sendCntM1JYBBatch(phId);
    }

    @ApiOperation(value = "收款节点", notes = "收款节点")
    @RequestMapping(value = "/Send/sendCntM1SKJDDelete", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1SKJDDelete(String phId) {
        return contServer.sendCntM1SKJDDelete(phId);
    }

    @ApiOperation(value = "收入合同信息删除", notes = "收入合同信息删除")
    @RequestMapping(value = "/Send/sendCntM1Delete", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1Delete(String phId) {
        return contServer.sendCntM1Delete(phId);
    }

    @ApiOperation(value = "收入合同清单信息", notes = "收入合同清单信息")
    @RequestMapping(value = "/Send/sendCntM1DDelete", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1DDelete(String phId) {
        return contServer.sendCntM1DDelete(phId);
    }

    @ApiOperation(value = "收入合同签约方信息", notes = "收入合同签约方信息")
    @RequestMapping(value = "/Send/sendCntM1JYBBatchDelete", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntM1JYBBatchDelete(String phId) {
        return contServer.sendCntM1JYBBatchDelete(phId);
    }

}
